<style>
.fui-header a.back:before {
	content: " ";
	border-color: #fff;
}
</style>
<div class="fui-page order-create-page fui-page-current">
	<div class="fui-header" style="z-index:108;background-color:#18bc9c;position: fixed;">
				<div class="fui-header-left">
					<a class="back" style="color:#fff" href="javascript:" ng-click="goback()">返回上一页</a>
				</div>
				<div class="title bold" style="font-size:1rem;color:#fff"></div>
				<div class="fui-header-right" style="padding-right:0.5rem;color:#fff" href="javascript:;" ng-click="access_json('jy_lineks/order/')">
						<div class="icon icon-wo1"></div>
				</div>
	</div>
	<div class="fui-content" style="margin-top:2.5rem">
		<div class="weui_cells_title c bold">{{pagedata.group.title}}</div>
		<div class="weui_cells_title c" style="margin-top:0">{{pagedata.group.desc || '暂时没有该分类的描述'}}</div>
		<div class="fui-cellone" style="padding-top:0">
			<div class="fui-cellone-info">
				<div class="search-input" style="height:1.6rem">
					<form action="javascript:return true">
					<i id="searchsub" class="icon icon-sousuo1 bold" ng-click="pagedata.searchget()" style="line-height: 1.7rem;"></i>
					<input type="search" placeholder="输入关键字" class="search" ng-model="pagedata.params.keyword" style="height:1.6rem;text-align: left; border: 1px solid #fff;color: #999; font-size:0.6rem;background:#fff;border-radius: 1rem;" />
					</form>
				</div>
			</div>
			<div class="fui-cellone-remark noremark">
			 	<span style="margin-left:0.3rem;font-size: 0.75rem;color:#333" ng-click="pagedata.searchget()">搜索</span>
			 </div>
		</div>
		<div style="padding:0 0.6rem">
			<!--<div class="fui-tab fui-tab-danger" style="margin-top:0">
					<a ng-class="{'active':pagedata.params.iszhuan == 1}" ng-click="pagedata.params.iszhuan = 1">专项练习</a>
					<a ng-class="{'active':pagedata.params.iszhuan != 1}" ng-click="pagedata.params.iszhuan = 0">基础练习</a>
			</div>-->
			<div class="fui-list-group merchgroup radius" style="margin-top:0" ng-repeat="item in pagedata.list">
				<div class="fui-list">
					<div class="fui-list-inner" style="margin-top:0.16rem">
						<div class="title bold" style="font-size:0.7rem">
						<span ng-if="item.isvip==1" class="syscolor" style="font-weight:400;font-size:0.6rem;padding-right:0.3rem">VIP</span>
						<span ng-if="item.isvip!=1" class="syscolor" style="font-weight:400;color:#18bc9c;font-size:0.6rem;padding-right:0.3rem">免费</span>
						{{item.title}}</div>
						<div class="subtitle" style="font-size:0.6rem">
							<span class="gray">{{item.desc || '无描述'}}</span>
						</div>
						<div class="subtitle" style="font-size:0.6rem">
							<span class="gray">所属分类:{{item.group}}</span>
						</div>
					</div>
				</div>
				<div class="fui-list">
					<div class="fui-list-inner c" ng-click="pagedata.totiku(item,1);">
						<span class="btn btn-sm btn-success-o" style="font-size:0.55rem">专项练习</span>
					</div>
					<div class="fui-list-inner c" ng-click="pagedata.totiku(item,0);">
						<span class="btn btn-sm btn-success-o" style="font-size:0.55rem">基础练习</span>
					</div>
					<div class="fui-list-inner c" href="javascript:;" ng-click="pagedata.getcanyu(item)">
						<span class="btn btn-sm btn-success-o" style="font-size:0.55rem">{{item.name||'模拟考试'}}</span>
					</div>
					<div class="fui-list-inner c" href="javascript:;" ng-click="access_json('jy_lineks/cuo_ti//id='+item.id)">
						<span class="btn btn-sm btn-success-o" style="font-size:0.55rem">错题查看</span>
					</div>
					<div class="fui-list-inner c" href="javascript:;" ng-click="access_json('jy_lineks/shoucang//id='+pagedata.item.id)">
						<span class="btn btn-sm btn-success-o" style="font-size:0.55rem">题目收藏</span>
					</div>
				</div>
			</div>
			<div class="content-empty" ng-show="pagedata.list.length == 0">
				  <i class="icon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;font-size:2rem"></i><br/>
				  <p style="color: #999;font-size: .75rem">该分类下暂时没有{{pagedata.params.type == 1?'题库':'下级分类'}}！</p>
			</div>
		</div>
	</div>
</div>
<div ng-if="pagedata.showzhuan" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#18bc9c">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showzhuan=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:#18bc9c">
				<div class='fui-cell-title c' style="color:#fff">请选择要练习的题目类型
				</div>
				<div class="fui-icon-group col-3" style="padding:0.2rem">
						 <div class="fui-icon-col" href="javascript:;" ng-click="access_json('jy_lineks/lianxi//type=4&id='+pagedata.item.id)">
								<div class="btn btn-success c bold" style="font-size: 0.75rem;">单选题</div>
						  </div>
						  <div class="fui-icon-col" href="javascript:;" ng-click="access_json('jy_lineks/lianxi//type=5&id='+pagedata.item.id)">
								<div class="btn btn-success c bold" style="font-size: 0.75rem;">多选题</div>
						  </div>
						  <div class="fui-icon-col" href="javascript:;" ng-click="access_json('jy_lineks/lianxi//type=20&id='+pagedata.item.id)">
								<div class="btn btn-success c bold" style="font-size: 0.75rem;">判断题</div>
						  </div>
				</div>
			</div>
		</div>
	</div>
</div>
<div ng-if="pagedata.showfen" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#18bc9c">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showfen=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:#18bc9c">
				<div class='fui-cell-title c' style="color:#fff">{{pagedata.item.canyu.id>0?'最近考试成绩如下':'您还未提交答卷'}}
				</div>
				<div class="fui-icon-group" style="padding:0.2rem">
					<div class='fui-cell-title c' style="font-size:0.8rem">{{pagedata.item.canyu.score || '0'}}分</div> 
					<div class='fui-cell-title c'>{{pagedata.item.canyu.desc || '无'}}</div> 
				</div>
				<div class="c">
					<div href="javascript:;" ng-click="access_json('jy_lineks/list//id='+pagedata.item.id)" class="btn btn-success c bold" style="font-size: 0.75rem;">前往模拟</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">
scope.tool.get_list('jy_lineks/index/tikulist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_lineks/index/tikulist/');
}
scope.pagedata.searchget=function(){
	scope.tool.get_list('jy_lineks/index/tikulist/',true);
}
scope.pagedata.totiku=function(item,iszhuan){
	scope.pagedata.item=item;
	if(iszhuan==1){
		scope.pagedata.showzhuan=true
		scope.$evalAsync();
	}else{
		scope.access_json('jy_lineks/lianxi//id='+item.id)
	}
}
scope.pagedata.getcanyu=function(item){
	scope.pagedata.item=item;
	scope.get('jy_lineks/group/getcanyu/id='+item.id,function(res){
		scope.pagedata.item.canyu=res.canyu;
		scope.pagedata.showfen=true;
		scope.$evalAsync();
	});
}
</script>
